package common

import (
	"gamesdk/wanyu/server/api/gameapi/gamecfg"
	"gamesdk/wanyu/server/protogo/gameddz"
)

//游戏配置
type GameCfg struct {
	GameCfg         *gamecfg.GameCfg
	KindCfg         *gamecfg.KindCfg
	ExGameCfg       *gameddz.GameExCfg
	ExKindCfg       *gameddz.KindExCfg
	AnnouncementCfg map[string][]int64
	GameStartAni    int
	SendCardAni     int
	EnsureBankerAni int
	WaitEndAni      int
	GameEndAni      int
}
type AnnouncementCfg struct {
}

//特控策略配置
type PlayerPokers struct {
	Pokers []*gameddz.Card `json:"pokers"` //一个玩家的牌
}
type GamePokers struct {
	FirstCall   int32           `json:"firstCall"`   //第一个叫地主的玩家，座位号0～2
	ThreeCards  []*gameddz.Card `json:"threeCards"`  //地主三张牌
	PlayerCards []*PlayerPokers `json:"playerCards"` //所有玩家的起始手牌
}
type ControlGame struct {
	OnceGame *GamePokers `json:"onceGame"` //房间内所有玩家的牌
}
type ControlCfg struct {
	ControlInfo []*ControlGame `json:"controlInfo"` //可以控制多把游戏
}

// "controlInfo":[{
// 	"onceGame":{
// 		"firstCall": 0,
// 		"threeCards": [
// 			{"number":3,"flower":0},
// 			{"number":3,"flower":1},
// 			{"number":3,"flower":2}],

// 		"playerCards":[
// 			{
// 				"pokers": [
// 					{"number":3,"flower":3},
// 					{"number":4,"flower":0},
// 					{"number":4,"flower":1},
// 					{"number":4,"flower":2},
// 					{"number":4,"flower":3},
// 					{"number":5,"flower":0},
// 					{"number":5,"flower":1},
// 					{"number":5,"flower":2},
// 					{"number":5,"flower":3},
// 					{"number":6,"flower":0},
// 					{"number":6,"flower":1},
// 					{"number":6,"flower":2},
// 					{"number":6,"flower":3},
// 					{"number":7,"flower":0},
// 					{"number":7,"flower":1},
// 					{"number":7,"flower":2},
// 					{"number":7,"flower":3}
// 				]
// 			},
// 			{
// 				"pokers": [
// 					{"number":8,"flower":0},
// 					{"number":8,"flower":1},
// 					{"number":8,"flower":2},
// 					{"number":8,"flower":3},
// 					{"number":9,"flower":0},
// 					{"number":9,"flower":1},
// 					{"number":9,"flower":2},
// 					{"number":9,"flower":3},
// 					{"number":10,"flower":0},
// 					{"number":10,"flower":1},
// 					{"number":10,"flower":2},
// 					{"number":10,"flower":3},
// 					{"number":11,"flower":0},
// 					{"number":11,"flower":1},
// 					{"number":11,"flower":2},
// 					{"number":11,"flower":3},
// 					{"number":12,"flower":0}
// 				]
// 			},
// 			{
// 				"pokers": [
// 					{"number":12,"flower":1},
// 					{"number":12,"flower":2},
// 					{"number":12,"flower":3},
// 					{"number":13,"flower":0},
// 					{"number":13,"flower":1},
// 					{"number":13,"flower":2},
// 					{"number":13,"flower":3},
// 					{"number":14,"flower":0},
// 					{"number":14,"flower":1},
// 					{"number":14,"flower":2},
// 					{"number":14,"flower":3},
// 					{"number":15,"flower":0},
// 					{"number":15,"flower":1},
// 					{"number":15,"flower":2},
// 					{"number":15,"flower":3},
// 					{"number":16,"flower":0},
// 					{"number":17,"flower":0}
// 				]
// 			}
// 		]
// 	}
// }]
